

package com.hazelcast.client.impl.spi;

/**
 * Factory interface creating client proxies.
 * <p>
 * Instances implementing this interface can be registered with the {@link ProxyManager} for instantiation upon request.
 */
public interface ClientProxyFactory {

    /**
     * Creates a new client proxy with the given ID
     *
     * @param id      the ID of the client proxy
     * @param context the {@link ClientContext} of the client proxy
     * @return the client proxy
     */
    ClientProxy create(String id, ClientContext context);
}
